const fs=require('fs')
console.log(__dirname);
fs.readFile(__dirname+'/dirname.js','utf8',function(err,dataStr){
  if(err){
    return console.log(`读取文件失败：${err.message}`);
  }
  console.log(dataStr);
})